package com.cljz.makepassenger.ui.activity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.cljz.makepassenger.R;
import com.cljz.makepassenger.base.BaseActivity;
import com.jakewharton.rxbinding.view.RxView;

import butterknife.BindView;
import rx.functions.Action1;

public class HelpCenterActivity extends BaseActivity {

    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_title_name)
    TextView tvTitleName;
    @BindView(R.id.btn_got)
    Button btnGot;

    @Override
    public void initData(Bundle savedInstanceState) {
        tvTitleName.setText("关于积分");
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_help_center;
    }

    @Override
    public Object newP() {
        return null;
    }

    @Override
    protected void initListener() {
        RxView.clicks(ivBack)
                .compose(this.<Void>bindToLifecycle())
                .subscribe(new Action1<Void>() {
                    @Override
                    public void call(Void aVoid) {
                        finish();
                    }
                });
        RxView.clicks(btnGot)
                .compose(this.<Void>bindToLifecycle())
                .subscribe(new Action1<Void>() {
                    @Override
                    public void call(Void aVoid) {
                        finish();
                    }
                });
    }
}
